package com.sikaryofficial.information.domain.dto.datasync;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 文章推荐对象 article_recommend_t
 *
 * @author qinjinyuan
 * @date 2024-03-13
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
@ApiModel(value = "文章推荐同步消息入参", description = "文章推荐同步消息入参")
public class SyncMQReq implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 同步类型： INSERT
     */
    @ApiModelProperty(value = "同步类型： INSERT", example = "INSERT")
    @NotBlank(message = "type could not be empty")
    private String type;
    /**
     * 消息类型 1-文章, 2- 文章推荐, 3-产业新闻
     */
    @ApiModelProperty(value = "消息类型 1-文章, 2-文章推荐, 3-产业新闻", example = "1")
    @NotNull(message="businessType could not be empty")
    private Integer businessType;
}
